package net.xuzhen97.distributed.transaction.course.service;

import net.xuzhen97.distributed.transaction.course.service.dto.OpenCourseCmd;
import net.xuzhen97.distributed.transaction.course.service.executor.OpenCourseCmdExe;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class OpenCourseService {

    @Resource
    private OpenCourseCmdExe openCourseCmdExe;

    public String openCourse(OpenCourseCmd cmd){
        return openCourseCmdExe.execute(cmd);
    }
}
